package com.ruoyi.tools;



import com.ruoyi.entity.pojo.Basic_Factory;
import com.ruoyi.service.Basic_FactoryService;
import lombok.RequiredArgsConstructor;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;

import java.util.List;

@RequiredArgsConstructor
@Component
public class CourseTools {

    private final Basic_FactoryService basiceFactoryService;

    @Tool(description = "查询所有工程")
    public List<Basic_Factory> selectAllSchools(){
        return basiceFactoryService.list();
    }

}
